#!/bin/bash
echo "🎯 平台标识符使用示例"
echo "=========================================="

# 加载工具函数
source ./platform_utils.sh

echo "1. 显示所有Windows平台:"
get_platforms_by_category "windows" | head -5

echo ""
echo "2. 搜索ARM平台:"
search_platform "arm" | head -5

echo ""
echo "3. 验证平台标识符:"
validate_platform "x86_64-w64-mingw32-ucrt"
validate_platform "invalid-platform"

echo ""
echo "4. 生成UEStudio目标:"
generate_uestudio_target "x86_64-w64-mingw32-ucrt"
generate_uestudio_target "aarch64-unknown-linux-gnu" "debug" "v2"

echo ""
echo "5. 显示平台信息:"
show_platform_info "x86_64-w64-mingw32-ucrt"
